package com.hwua.view;

import com.hwua.util.InputTools;

/**
 * 欢迎界面
 * @author admin
 */
public class WelcomeView extends AbstractView{
    @Override
    public AbstractView showView() {
        System.out.println("✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿");
        System.out.println("欢迎访问二嗨租车系统");
        System.out.println("====================");
        System.out.println("1.用户 2.管理员");
        int choose = InputTools.checkIntInput(1, 2);
        switch(choose){
            case 1:nextView = new WelcomeUserView();
                break;
            case 2:nextView = new WelcomeAdminView();
                break;
            default:
                break;
        }
        return nextView;
    }
}
